package notes.java.sjms23.t21_builder;

// 建造者模式 - 具体建造者
public class BenCar implements CarBuilder{

    private Car car;
    
    public BenCar() {
        car = new Car();
    }

    @Override
    public void createRoof() {
        car.setRoof("生产奔驰车顶");
    }

    @Override
    public void createBottom() {
        car.setBottom("生产奔驰车底");
    }

    @Override
    public void createWheel() {
        car.setWheel("生产奔驰车轮");
    }

    @Override
    public Car buildCar() {
        return car;
    }
    
    
}
